package com.shuqi.controller;

import android.content.Context;

import com.shuqi.activity.MoreRecommengActivity;
import com.shuqi.interfaces.IEventListener;
import com.shuqi.model.MoreRecommengModel;

/**
 * 更多推荐Controller
 * 
 * @author zhuchen
 * 
 */
public class MoreRecommengController extends ControllerBase {
    private MoreRecommengActivity context;
    private MoreRecommengModel model;

    public MoreRecommengController(Context context) {
        this.context = (MoreRecommengActivity) context;
        this.model = new MoreRecommengModel(context);
    }

    @Override
    public void addEventListener(IEventListener listener) {
        model.addEventListener(listener);
    }

    @Override
    public void handle(int eventType, Object... objs) {
        switch (eventType) {
            case EVENT_LOADPAGE:
                model.loadData(objs);

                break;

            default:
                break;
        }

    }

    @Override
    public void onDestroy() {
        model.onDestroy();

    }

}
